<?php
			$sql = "select * from notice order by  notice_date desc limit 20";

			$res =& $db->query($sql);
			if (PEAR::isError($res)) {			//SQLの実行に失敗すればここでエラー文を出力
				die($res->getDebugInfo());
			}

			print("
					<font color='0e00b0' font size=5><i>お知らせ</i></font><hr size=5 width=520 color='#0e00b0' align='left'/>
					<div class='top_info'
					style='border:thick solid #0080ff 0.;width:520;height:150;overflow:auto;
					scrollbar-3dlight-color:#000000;
					scrollbar-arrow-color:#000000;
					scrollbar-shadow-color:#000000;
					scrollbar-highlight-color:#ffffff;
					scrollbar-track-color:#ffffff;
					scrollbar-darkshadow-color:#ffffff;
					scrollbar-face-color:#ffffff;
					'>
					<Table border='0' width='500' height='150' cellspacing='0'>
					<Tr width=10>
				");
			while ($news =& $res->fetchRow(DB_FETCHMODE_ASSOC)) {	//SQLの実行結果を表示

					$new01 = $news['notice_date'];
					$new02 = $news['notice_data'];


					echo "<td width=10>";
					echo "<td width=150>$new01</td>";
					echo "<td width=250>$new02</td>";
					echo "</tr>";
			}
					echo "</table>";
					echo "</div>";